package com.nbsaas.boot.miaosha.data.entity;

import javax.persistence.*;

import com.nbsaas.boot.jpa.data.entity.AbstractEntity;
import lombok.Data;
import org.hibernate.annotations.Comment;
import java.util.List;

@Data
@Entity
@Table(name = "miaosha_group")
public class MiaoshaGroup extends AbstractEntity {

    @Comment("时间线样式")
    private String timeLineStyle;

    @Comment("本地结果是否有效")
    private boolean isResultValidForLocal;

    @Comment("控制映射")
    private String controlMap;

    @Comment("品牌印象")
    private String brandImpr;

    @Comment("分组ID")
    private String gid;

    @Comment("代码")
    private String code;

    @Comment("秒杀分组左侧图片")
    private String seckillGroupLeftImg;

    @Comment("服务点击")
    private String srvClk;

    @Comment("关闭自动分组开关")
    private int closeAutoGroupSwitch;

    @Comment("分组类型")
    private String groupsType;

    @Comment("新品牌图片")
    private String newBrandImg;

    @Comment("商品信息样式")
    private String wareInfoStyle;

    @Comment("显示视频楼层")
    private int showVideoFloor;

    @Comment("是否精选")
    private int isJingXuan;

    @Comment("成本")
    private double cost;

    @Comment("品牌点击")
    private String brandClk;


    @ManyToOne
    @JoinColumn(name = "groupType_id")
    @Comment("分组类型")
    private GroupType groupType;

}
